package com.aaa.controller;

import com.aaa.dao.MenuMapper;
import com.aaa.entity.Menu;
import com.aaa.service.impl.MenuServiceimpl;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RequestMapping("menu")
@RestController
public class MenuController {
    @Resource
    MenuServiceimpl menuServiceimpl;

    @RequestMapping("find")
    public List<Menu> find(){
        return menuServiceimpl.find();
    }
}
